﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace FurnitureDesign.Core.Models
{
   public class Message
    {
        [Key]
        public int Id { get; set; }

        [Display(Name = "姓名")]
        [Required(ErrorMessage = "姓名不能为空")]
        public string MessageName { get; set; }

        [Display(Name = "留言内容")]
        [Required(ErrorMessage = "留言内容不能为空")]
        public string MessageContent { get; set; }

        [Display(Name = "回复内容")]
        public string ReplyContent { get; set; }

        [Display(Name = "留言时间")]
        [Required(ErrorMessage = "留言时间不能为空")]
        public string MessageTime { get; set; }

        [Display(Name = "回复时间")]
        public string ReplyTime { get; set; }

        [Display(Name = "状态")]
        [Required(ErrorMessage = "状态不能为空")]
        public string State { get; set; }
    }
}
